package com.test.liuhb.test.entity;

import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.test.liuhb.test.Adapter.UserTypeAdapter;

/**
 * Created by liu.hb on 2018/2/23.
 */
@JsonAdapter(UserTypeAdapter.class) //加在类上
public class User1 {
    public String name;
    public int age;
    @SerializedName(value = "emailAddress")
    public String email;

    public User1(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public User1() {
    }

    public User1(String name, int age, String email) {
        this.name = name;
        this.age = age;
        this.email = email;
    }
}
